//
//  main.m
//  Student
//
//  Created by apple on 15/8/7.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Years.h"
#import "XiaoMing.h"
#import "XiaoQiang.h"
#import "Get.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool
    {
//        Years *p = [[Years alloc] init];
//        [p setAge:12];
//        NSLog(@"%d",p.age);
//    
////        [p Eat];
        
        
        XiaoMing *xiaoMing = [[XiaoMing alloc] init];
        [xiaoMing Eat];
        
        
        NSLog(@"-----------------");
        XiaoQiang *xiaoQiang  =[[XiaoQiang alloc] init];
        xiaoMing.friend = xiaoQiang;
        
        [xiaoMing Eat];
        
        [xiaoMing release];
        [xiaoQiang release];
    }
    return 0;
}
